namespace ScrumSprintMonitor.Implementation.Configuration
{
	#region #using Directives

	using System.ComponentModel;

	using Infrastructure.Configuration;

	#endregion

	public class WorkItemInterpretationConfiguration : IWorkItemInterpretationConfiguration
	{
		private bool allowUnestimatedWorkItems;

		#region IWorkItemInterpretationConfiguration Members

		public bool AllowUnestimatedWorkItems
		{
			get { return this.allowUnestimatedWorkItems; }
			set
			{
				if (value != this.allowUnestimatedWorkItems)
				{
					this.allowUnestimatedWorkItems = value;

					OnPropertyChanged("AllowUnestimatedWorkItems");
				}
			}
		}

		#endregion

		#region INotifyPropertyChanged members

		public event PropertyChangedEventHandler PropertyChanged;

		public void OnPropertyChanged(string propertyName)
		{
			if (PropertyChanged != null)
			{
				PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
			}
		}

		#endregion
	}
}